﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class UserInfo
    {
        private string userName;
        private string userAccount;
        private string userPassword;

        public string UserName { get => userName; set => userName = value; }
        public string UserAccount { get => userAccount; set => userAccount = value; }
        public string UserPassword { get => userPassword; set => userPassword = value; }

        public UserInfo(string userAccount,string userName,string userPassword)
        {
            this.UserAccount = userAccount;
            this.UserName = userName;
            this.UserPassword = userPassword;
        }

        public void ToString()
        {
            Console.WriteLine($"{this.userName} {this.userAccount} {userPassword}");
        }
    }
}
